﻿using System;
using System.Text;
using System.Drawing;
using System.Buffers;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;

public static partial class glDRIVE
{
    /*
    误差函数  
    x：自变量值。
    函数返回误差函数值。
    */

    public static string drive_errf()
    {
        int i, j;
        double x, y;

        x = 0.0;
        y = gl.errf(x);

        StringBuilder sb = new StringBuilder();
        sb.AppendLine(y + "<br>");
        for (i = 0; i <= 7; i++)
        {
            for (j = 0; j <= 4; j++)
            {
                x = x + 0.05; y = gl.errf(x);
                sb.AppendLine(y + " ");
            }
            sb.AppendLine("<br>");
        }
        return sb.ToString();
    }
}